<layout name="layout"/>

<p>
<!-- Button trigger modal -->
<button type="button" class="uk-button uk-button-success" data-uk-modal="{target:'#myModal',center:true}">
{$Think.lang.add_new}
</button>
</p>

<form class="uk-form">

    <div class="uk-grid">
		<div class="uk-width-1-4">值:<input type="text" name="bl_value" placeholder="" class="uk-width-1-1"></div>
        <div class="uk-width-1-4">类型:<select name="bl_type">
		<option value="">--</option>
<volist name=":blacklistType()" id="vo">
	<option value="{$key}">{$vo}</option>
</volist>				
		</select>
		</div>
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">搜索</button>
</p>
</form>

          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
	<thead>
		<th>#</th>		<th>类型</th>		<th>值</th>		
		<th>是否启用</th>		<th>{$Think.lang.add_time}</th>		<th>--</th>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
			<td><a href="__CONTROLLER__/details/{$vo.bl_id}">{$vo.bl_id}</a></td><td>{$vo.bl_type|blacklistType}</td>
			<td>{$vo.bl_value}</td><td>{$vo.bl_status|displayIcon}</td><td>{$vo.bl_date}</td><td>
				<a href="javascript:void(0)" onclick="confirmDelete('__CONTROLLER__/deleteHandle/{$vo.bl_id}')">
					<i class="uk-icon-trash"></i>
				</a>
			</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
{$page}

<!-- Modal -->
<div class="uk-modal" id="myModal">
 <form id="validate_form" class="uk-form"  method="post" action="__CONTROLLER__/addHandle">
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
        <div class="uk-modal-header">{$Think.lang.add_new}</div>

<table class="uk-table">
	<tr><td width=150>{$Think.lang.bl_type}</td><td>
<select name="bl_type" required>
	<option value="">--</option>
	<volist name=":blacklistType()" id="vo">
	<option value="{$key}">{$vo}</option>	
	</volist>
</select>
</td></tr>
<tr><td>{$Think.lang.bl_value}
</td><td>
<input type="text" name="bl_value"   required   />
</td></tr>
<tr><td>{$Think.lang.bl_value1}
</td><td>
<input type="text" name="bl_value1"   />
</td></tr>
<tr><td>{$Think.lang.bl_value2}
</td><td>
<input type="text" name="bl_value2"   />
</td></tr>
<tr><td>{$Think.lang.bl_value3}
</td><td>
<input type="text" name="bl_value3"   />
</td></tr>

<tr><td>{$Think.lang.status}
</td><td>
	<label><input type="radio" name="bl_status" value="1" checked /> {$Think.lang.yes}</label>
	<label><input type="radio" name="bl_status" value="0"  /> {$Think.lang.no}</label>
</td></tr>

<tr><td>{$Think.lang.remark}</td><td>
<textarea type="text" name="bl_remark"  
 style="height:100px;"   ></textarea>
</td></tr>
  </table>

        <div class="uk-modal-footer uk-text-right">
		<button class="uk-button uk-button-danger" type="submit">{$Think.lang.save}</button>
		</div>
    </div>
			   </form> 
</div>